

<#escape x as x?html>

<script type="text/javascript">
<!--
jQuery(document).ready(function(){
	$(".sub_left_menu tbody tr").click(function() {
		$(".sub_left_menu tbody tr.active").removeClass("active");
		$(this).attr("class", "active");
		var _url=ctx + "/system/fwlog/look/json?id="+ $(this).attr("id");
	
		jQuery.ajax({
			url : _url,
			type : "post",
			dataType : "json",
			success : function(_json) {
				if(_json.status=="success"){
					showdata(_json);
				}
			}
		});
		return false;
	})
});

function showdata(result) {
	$("#updateForm select ").each(function() {
		$(this).find('option:first').attr('selected', 'selected');
	});
	for (var s in result.data) {
		set_val(s, result.data[s]);
	}
}

//-->
</script>


<form class="form-horizontal" method="post"  action="${ctx}/system/fwlog/list"  name="searchForm" id="searchForm">
<input type="hidden" name="pageIndex" id="pageIndex" value="${(returnDatas.page.pageIndex)!'1'}" />
<input type="hidden" name="sort" id="page_sort" value="${(returnDatas.page.sort)!'desc'}"  />
<input type="hidden" name="order" id="page_order" value="${(returnDatas.page.order)!'id'}"  />
</form>

<!-- 功能操作区域结束 -->
<!-- 列表显示区域  -->
<div class="row">
	<div class="col-sm-4 sub_left_menu ">
		<table class="table table-bordered">
			<thead>
				<tr>
					<th>用户</th>
					<th>时间</th>
				</tr>
			</thead>
			<tbody>
			
			   <#if (returnDatas.data??)&&(returnDatas.data?size>0)>
					   <#list returnDatas.data as _data>
							<tr id="${(_data.id)!''}">
								<td>${(_data.userCode)!''}</td>
								<td>${(_data.strDate)!''}</td>
							</tr>
                         </#list>
					 </#if>
			</tbody>
		</table>
	</div>
	<div class="col-sm-8 last sub_content">
		<form id="updateForm" name="updateForm"     method="post" class="well form-horizontal clearfix">
			<input type="hidden" name="id" id="id">
			<div class="form-group col-xs-12">
				<label class="col-sm-4 control-label" for="name">用户：</label>
				<div class="col-sm-8">
					<input class="form-control"  type="text" id="userCode" name="userCode">
				</div>
			</div>
			
			<div class="form-group col-xs-12">
				<label class="col-sm-4 control-label" for="name">中文名：</label>
				<div class="col-sm-8">
					<input class="form-control"  type="text" id="userName" name="userName">
				</div>
			</div>
			
			<div class="form-group col-xs-12">
				<label class="col-sm-4 control-label" for="name">IP：</label>
				<div class="col-sm-8">
					<input class="form-control"  type="text" id="ip" name="ip">
				</div>
			</div>
			
			<div class="form-group col-xs-12">
				<label class="col-sm-4 control-label" for="name">时间：</label>
				<div class="col-sm-8">
					<input class="form-control"  type="text" id="strDate" name="strDate">
				</div>
			</div>
			
			<div class="form-group col-xs-12">
				<label class="col-sm-4 control-label" for="name">菜单名称：</label>
				<div class="col-sm-8">
					<input class="form-control"  type="text" id="menuName" name="menuName">
				</div>
			</div>
			<div class="form-group col-xs-12">
				<label class="col-sm-4 control-label" for="name">访问URL：</label>
				<div class="col-sm-8">
					<input class="form-control"  type="text" id="fwUrl" name="fwUrl">
				</div>
			</div>
		</form>
	</div>
		<#if returnDatas.page??> <@h.pagetoolbar page=returnDatas.page formId='searchForm' /> </#if>
</div>	
</#escape>